import { Canvas } from "@react-three/fiber";
import Scene from "./components/Scene.jsx";
import { Physics } from "@react-three/cannon";

function App() {
  return (
    <>
      <Canvas>
        <Physics
          broadphase="SAP"
          gravity={[0, -2.6, 0]}
        >
          <Scene />
        </Physics>
      </Canvas>
      <div className="controls">
        <p>按 w a s d 进行移动</p>
        <p>按 k 切换视角</p>
        <p>按 r 重置</p>
      </div>
    </>
  );
}

export default App;
